package tw.org.iii.dataaccesssample;

import android.os.Bundle;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class ActMain extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.actmain);
		InitialComponent();
	}
	OnClickListener btnShared_click=new OnClickListener(){
		public void onClick(View arg0) {
			
			Intent intent =new Intent(ActMain.this,ActShared.class);
			startActivity(intent);
	}};
	OnClickListener btnTodo_click=new OnClickListener(){
		public void onClick(View arg0) {
			
			Intent intent =new Intent(ActMain.this,ActToDo.class);
			startActivity(intent);
	}};	
	OnClickListener btnFile_click=new OnClickListener(){
		public void onClick(View arg0) {
			
			Intent intent =new Intent(ActMain.this,ActFile.class);
			startActivity(intent);
	}};	
	OnClickListener btnSQLite_click=new OnClickListener(){
		public void onClick(View arg0) {
			
			Intent intent =new Intent(ActMain.this,ActSqlite.class);
			startActivity(intent);
	}};
	
	private void InitialComponent() {
		
		btnShared=(Button)findViewById(R.id.btnShared);
		btnShared.setOnClickListener(btnShared_click);
		btnFile=(Button)findViewById(R.id.btnFile);
		btnFile.setOnClickListener(btnFile_click);
		btnSQLite=(Button)findViewById(R.id.btnSQLite);
		btnSQLite.setOnClickListener(btnSQLite_click);
		btnTodo=(Button)findViewById(R.id.btnToDoApp);
		btnTodo.setOnClickListener(btnTodo_click);
		
	
	}
   
	Button btnShared=null;
	Button btnFile=null;
	Button btnSQLite=null;
	Button btnTodo=null;
}
